Apply for Zend Framework Certification Training

Jquery




var checkonlydecimalregex = /^(?:\d+|\d*\.\d+)$/;
var checkForPercentage = /^\d{1,2}\.\d{1,2}$|^\d{1,3}$/;
var name_regex = /^[a-zA-Z]+$/;
var email_regex = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; 

if(!checkForPercentage.test(valueof textbox))
{
    alert("Enter only % value");
}
                                    

< How to Reload Data in Jquery events >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top